<?php

//require_once 'SpotLight/core/HTTP/dispatcher/RequestDispatcher.class.php';

class DefaultRequestDispatcher extends RequestDispatcher {
   
   /**
    * @see RequestDispatcher::dispatch()
    *
    */
   public function dispatch() {

   }
   
   /**
    * @see RequestDispatcher::getAttribute()
    *
    */
   public function getAttribute($key) {
      return $_REQUEST [$key];
   }
   
   public function getAttributes() {
      return $_REQUEST;
   }
   
   public function setAttribute($key, $value) {
      $_REQUEST [$key] = $value;
   }
   
   /**
    * @see RequestDispatcher::isExist()
    *
    * @param unknown_type $key
    */
   public function isExist($key) {
      return isset ( $_REQUEST [$key] );
   }
   
   public function clear() {
      foreach ( $_GET as $key => $value )
         unset ( $_GET [$key] );
      foreach ( $_POST as $key => $value )
         unset ( $_POST [$key] );
      foreach ( $_REQUEST as $key => $value )
         unset ( $_REQUEST [$key] );
   }

}

?>